package mysql

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	GoodTitle  string  `gorm:"type:varchar(50);not null;comment:'标题'"`
	GoodStock  int     `gorm:"type:int;not null;comment:'库存'"`
	GoodPrice  float64 `gorm:"type:double(10,2);not null;comment:'价格'"`
	GoodStatus int     `gorm:"type:int;not null;comment:'状态'"`
}

type User struct {
	Phone    string `gorm:"type:varchar(11);not null;comment:'手机号'"`
	UserName string `gorm:"type:varchar(20);not null;comment:'用户名'"`
	Password string `gorm:"type:varchar(32);not null;comment:'密码'"`
	OrderSn  int    `gorm:"type:int;unique;not null;comment:'订单编号'"`
}
